//
//  NewspaperDesCell.m
//  JianChaRiBao
//
//  Created by 常兴宇 on 13-10-30.
//  Copyright (c) 2013年 wzyk. All rights reserved.
//

#import "NewspaperDesCell.h"

@implementation NewspaperDesCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)updateDisplay{
    desLabel.text = [self.baseInfo objectForKey:@"page_name"];
}
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated{
    [super setHighlighted:highlighted animated:animated];
    [UIView animateWithDuration:0.1 animations:^{
        if (highlighted) {
            self.contentView.backgroundColor = [UIColor lightGrayColor];
            desLabel.textColor = [UIColor blackColor];
        }else {
            self.contentView.backgroundColor = [UIColor clearColor];
            desLabel.textColor = [UIColor lightGrayColor];
        }
    }];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)dealloc {
    [desLabel release];
    [super dealloc];
}
@end
